package cn.edu.nwpu.warehousemanagement.pojo.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;

@Data
@NoArgsConstructor
@AllArgsConstructor
/**
 * @author ljl
 * 入库的DTO
 */
public class InBoundDTO {

    // 商品 ID
    private String itemId;

    // 商品名称
    private String itemName;

    // 所在货架 ID
    private String shelfId;

    // 批次编号，例如：20250603-01
    private String batchId;

    // 箱编号，例如：20250603-01-001
    private String boxId;

    // 入库日期，格式：yyyy-MM-dd
    private LocalDate inboundDate;

    /**
     * 覆写DTO的toString方法
     * @return
     */
    @Override
    public String toString() {
        return "{" +
                "itemName: " + itemName + "," +
                "itemId: " + itemId + "," +
                "shelfId: " + shelfId + "," +
                "inboundDate: " + inboundDate + "," +
                "batchId: " + batchId + "," +
                "boxId: " + boxId +
                '}';
    }
}
